@import './modules/reset.scss';
@import './modules/header.scss';
@import './modules/footer.scss';

main {
  @include center();
  min-height: 500px;
  padding-top: 10px;
  margin-bottom: 10px;
  .nav {
    height: 40px;
    padding-top: 6px;
  }
  .book {
    height: 353px;
    background: #fff;
    overflow: hidden;
    position: relative;
    &-middleImg {
      float: left;
      width: 200px;
      height: 272px;
      border-radius: 5px;
      overflow: hidden;
      margin: 40px 0 0 40px;
      position: relative;
      span {
        img {
          width: 200px;
          height: 272px;
          vertical-align: middle;
        }
      }
      .moveBox {
        position: absolute;
        width: 100px;
        height: 136px;
        background-color: rgba(255, 0, 0, 0.301);
        left: 0;
        top: 0;
        display: none;
      }
    }

    &-bigImg {
      position: absolute;
      left: 300px;
      top: 40px;
      width: 200px;
      height: 272px;
      overflow: hidden;
      display: none;
      img {
        position: absolute;
        width: 400px;
        height: 542px;
      }
    }

    &-message {
      float: left;
      margin: 46px 0 0 40px;
      width: 660px;
      .title {
        overflow: hidden;
        .name {
          float: left;
          font-size: 30px;
          font-weight: bold;
          color: #2c3e50;
        }
        .author {
          float: left;
          font-size: 16px;
          margin: 16px 7px 0 18px;
        }
        .write {
          float: left;
          margin-top: 16px;
          font-size: 16px;
        }
      }
      .tags {
        margin-top: 15px;
        overflow: hidden;
        a {
          span {
            float: left;
            font-size: 14px;
            padding: 4px 10px 5px;
            border: 1px solid #ff4c2f;
            color: #ff4c2f;
            border-radius: 4px;
            margin-right: 15px;
          }
          span.isfinish {
            color: #66ccdd;
            border-color: #66ccdd;
          }
        }
      }
      .hits {
        color: #999;
        font-size: 12px;
        margin-top: 20px;
        i {
          display: inline-block;
          width: 8px;
          height: 8px;
          background: #ccc;
          border-radius: 50%;
          margin-right: 4px;
        }
        span {
          display: inline-block;
          margin-right: 16px;
          color: #999;
        }
      }
      .brief_text {
        margin-top: 24px;
        line-height: 24px;
        font-size: 14px;
        height: 48px;
        overflow: hidden;
        text-indent: 2em;
      }
      .btns {
        margin-top: 48px;
        a {
          display: inline-block;
          color: #333;
          font-size: 18px;
          padding: 9px 33px 10px;
          border: 1px solid #333;
          border-radius: 5px;
          margin-right: 30px;
        }
        a.on {
          background-color: #ff4c2f;
          border-color: #ff4c2f;
          color: #fff;
        }
      }
    }
  }

  .book-content {
    margin-top: 10px;
    overflow: hidden;
    .header {
      width: 950px;
      height: 59px;
      border-bottom: 2px solid #f2f2f2;
      background: #fff;
      span {
        display: inline-block;
        width: 200px;
        height: 58px;
        border-bottom: 4px solid transparent;
        text-align: center;
        line-height: 58px;
        font-size: 18px;
        color: #333;
        cursor: pointer;
      }
      span.on {
        border-color: #ff4c2f;
        color: #ff4c2f;
      }
    }

    .tabcontent {
      .description {
        .column_left {
          float: left;
          width: 950px;
          >div {
            >div {
              min-height: 50px;
              background: #fff;
              padding: 13px 20px 10px;
              border-bottom: 1px solid #ccc;
              overflow: hidden;
            }
            .summary {
              pre {
                color: #333;
                line-height: 26px;
                font-size: 14px;
                word-spacing: 4px;
                letter-spacing: 1px;
                font-family: "Microsoft Yahei";
                white-space: pre-wrap;
              }
              p {
                color: #999;
                line-height: 26px;
                font-size: 12px;
                text-indent: 2em;
                letter-spacing: 1px;
              }
            }
            .newchapter {
              background: #fff;
              padding: 20px 20px 26px 20px;
              height: 101px;
              word-wrap: break-word;
              .title {
                overflow: hidden;
                span.chaptername {
                  font-size: 14px;
                  float: left;
                }
                span.chaptertime {
                  float: right;
                  font-size: 12px;
                  color: #666;
                }
              }
              p {
                margin-top: 14px;
                line-height: 24px;
                font-size: 12px;
                height: 72px;
                overflow: hidden;
                text-indent: 2em;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 3;
                a {
                  font-size: 12px;
                  color: #333;
                }
              }
            }
          }
        }
        .column_right {
          width: 240px;
          float: right;
          background-color: #fff;
          margin-top: -62px;
          >div {
            padding-left: 20px;
            padding-top: 20px;
            .author {
              .line1 {
                height: 1px;
                background: #f2f2f2;
                width: 240px;
                margin-left: -20px;
              }
              .medalbox {
                overflow: hidden;
                .clearfixer {
                  margin-bottom: 20px;
                  overflow: hidden;
                  >a {
                    float: left;
                    width: 60px;
                    height: 60px;
                    
                    img {
                      width: 60px;
                      height: 60px;
                      outline: none;
                      vertical-align: middle;
                    }
                  }
                  .name {
                    margin-left: 13px;
                    float: left;
                    a {
                      display: block;
                      font-size: 14px;
                      color: #333;
                      margin-top: 7px;
                    }
                    span {
                      width: 78px;
                      height: 20px;
                      background-color: #ff4c2f;
                      text-align: center;
                      font-size: 14px;
                      color: #fff;
                      line-height: 20px;
                      display: block;
                      border-radius: 10px;
                      margin-top: 10px;
                    }
                  }
                }
              }

              .data {
                margin: 20px 0;
                overflow: hidden;
                div {
                  text-align: center;
                  float: left;
                  p {
                    margin-bottom: 9px;
                    color: #999;
                    font-size: 12px;
                  }
                  span {
                    color: #ff4c2f;
                    font-size: 14px;
                  }
                }
                div:nth-child(2) {
                  width: 76px;
                  margin: 0 13px;
                }
              }

              .allbook {
                max-height: 240px;
                margin-right: 20px;
                .title {
                  margin-top: 19px;
                  margin-bottom: 13px;
                  overflow: hidden;
                  .text {
                    color: #999;
                    float: left;
                    font-size: 12px;
                  }
                }

                &_content {
                  width: 100%;
                  padding-bottom: 15px;
                  .el-carousel {
                    min-height: 150px;
                    .el-carousel__container {
                      height: 150px;
                      display: flex;
                      justify-content: space-evenly;
                      .el-carousel__item {
                        transform: translateX(0px) scale(1);
                        text-align: center;
                        img {
                          width: 82px;
                          height: 112px;
                          border: 1px solid #ccc;
                        }
                        span {
                          margin-top: 10px;
                          text-align: center;
                          display: block;
                          font-size: 12px;
                        }
                      }
                    }

                  }
                }
              }
            }
          }
        }
      }
    }
  }
}